package com.DataAndConstant
{
	import flash.display.Sprite;
	
	import mx.collections.ArrayCollection;
	
	import org.osflash.signals.Signal;

	/**
	 *This class will hold game data..which will include some runtime changes and some compile time 
	 * intialization so we dont have to change particular class each time.... 
	 */	
	
	[Bindable]
	public class GameData
	{
		private static var me:GameData;
		public static function getInstance():GameData
		{
			if(me == null)
			{
				me = new GameData();
			}
			
			return me;
		}
		public var avatarSelection:Signal = new Signal();
		public var avatarItemWardrobe:Signal = new Signal();
		public var decorationItemSelection:Signal =  new Signal();
		public var equipMentItemSelection:Signal = new Signal();
		public var musicInstrumentSelection:Signal = new Signal();
		public var menuIndexChange:Signal = new Signal();
		// Variable declaration
		
		public var boyAvatars:ArrayCollection = new ArrayCollection([{ name: "11"},{ name: "12"},{ name: "13"},{ name: "14"},{ name: "15"}]);
		public var girlAvatars:ArrayCollection = new ArrayCollection([{ name: "1"},{ name: "2"},{ name: "3"},{ name: "4"},{ name: "5"}]);
		
		
		
		public var boyJacket:ArrayCollection= new ArrayCollection([{name: "Blank"},{ name: "boyJacket1"},{ name: "boyJacket2"},{ name: "boyJacket3"},{ name: "boyJacket4"},{ name: "boyJacket5"}]);
		public var girlJacket:ArrayCollection = new ArrayCollection([{name: "Blank"},{ name: "girlJacket1"},{ name: "girlJacket2"},{ name: "girlJacket3"},{ name: "girlJacket4"},{ name: "girlJacket5"}]);
		
		public var boyShoes:ArrayCollection= new ArrayCollection([{ name: "shoes1"},{ name: "shoes2"},{ name: "shoes3"},{ name: "shoes4"},{ name: "shoes5"}]);
		public var girlShoes:ArrayCollection = new ArrayCollection([{ name: "shoes1"},{ name: "shoes2"},{ name: "shoes3"},{ name: "shoes4"},{ name: "shoes5"}]);
		
		public var boyLower:ArrayCollection= new ArrayCollection([{ name: "Jeans1"},{ name: "Jeans2"},{ name: "Jeans3"},{ name: "Jeans4"},{ name: "Jeans5"}]);
		public var girlLower:ArrayCollection = new ArrayCollection([{ name: "Jeans1"},{ name: "Jeans2"},{ name: "Jeans3"},{ name: "Jeans4"},{ name: "Jeans5"}]);
		
		public var boyBelt:ArrayCollection= new ArrayCollection([{name: "Blank"},{ name: "Belt1"},{ name: "Belt2"},{ name: "Belt3"},{ name: "Belt4"},{ name: "Belt5"}]);
		public var girlBelt:ArrayCollection = new ArrayCollection([{name: "Blank"},{ name: "Belt1"},{ name: "Belt2"},{ name: "Belt3"},{ name: "Belt4"},{ name: "Belt5"}]);
		
		public var boyLocket:ArrayCollection= new ArrayCollection([{name: "Blank"},{ name: "Locket1"},{ name: "Locket2"},{ name: "Locket3"},{ name: "Locket4"},{ name: "Locket5"}]);
		public var girlLocket:ArrayCollection = new ArrayCollection([{name: "Blank"},{ name: "Locket1"},{ name: "Locket2"},{ name: "Locket3"},{ name: "Locket4"},{ name: "Locket5"}]);
		
		public var boyWristBand:ArrayCollection= new ArrayCollection([{name: "Blank"},{ name: "WB1"},{ name: "WB2"},{ name: "WB3"},{ name: "WB4"},{ name: "WB5"}]);
		public var girlWristBand:ArrayCollection = new ArrayCollection([{name: "Blank"},{ name: "WB1"},{ name: "WB2"},{ name: "WB3"},{ name: "WB4"},{ name: "WB5"}]);
		
		public var boyHair:ArrayCollection= new ArrayCollection([{ name: "Hair1"},{ name: "Hair2"},{ name: "Hair3"},{ name: "Hair4"},{ name: "Hair5"}]);
		public var girlHair:ArrayCollection = new ArrayCollection([{ name: "Hair1"},{ name: "Hair2"},{ name: "Hair3"},{ name: "Hair4"},{ name: "Hair5"},{ name: "Hair6"},{ name: "Hair7"}]);
		
		public var boyCaps:ArrayCollection= new ArrayCollection([{name: "Blank"},{ name: "caps1"},{ name: "caps2"},{ name: "caps3"},{ name: "caps4"},{ name: "caps5"}]);
		public var girlCaps:ArrayCollection = new ArrayCollection([{name: "Blank"},{ name: "caps1"},{ name: "caps2"},{ name: "caps3"},{ name: "caps4"},{ name: "caps5"}]);
		
		public var girlskirt:ArrayCollection = new ArrayCollection([{ name: "1"},{ name: "2"},{ name: "3"},{ name: "4"},{ name: "5"}]);
		
		public var boyTshirt:ArrayCollection= new ArrayCollection([{ name: "T-shirt1"},{ name: "T-shirt2"},{ name: "T-shirt3"},{ name: "T-shirt4"},{ name: "T-shirt5"},{ name: "T-shirt6"}]);
		public var girlTshirt:ArrayCollection = new ArrayCollection([{ name: "T-shirt1"},{ name: "T-shirt2"},{ name: "T-shirt3"},{ name: "T-shirt4"},{ name: "T-shirt5"}]);
		
		
		public var wardrobeSection_Boy:ArrayCollection = new ArrayCollection([{name: "Jeans"},{name: "T-shirt"},{name: "Jacket"},{name: "Shoes"},{name: "Belt"},{name: "Locket"},{name: "WristBand"},{name: "Hair"},{name: "Caps"}]);
		public var wardrobeSection_Girl:ArrayCollection = new ArrayCollection([{name: "Jeans"},{name: "T-shirt"},{name: "Jacket"},{name: "Shoes"},{name: "Belt"},{name: "Locket"},{name: "WristBand"},{name: "Hair"},{name: "Caps"}]);
		public var wardrobeSection:ArrayCollection = new ArrayCollection();
		public var wardrobeItem:ArrayCollection = new ArrayCollection(boyJacket.source);
		
		
		// Make here all the wardrobe arrayCollection 
		
		//Avatar Holder
		public var avatarHolderForBoy:guy_avatar_container = new guy_avatar_container();
		public var avatarHolderForGirl:avatar_container = new avatar_container();
		
		//MusicInstrument
		public var Guitar:ArrayCollection = new ArrayCollection([{ name: "Guitar1"},{ name: "Guitar2"},{ name: "Guitar3"},{ name: "Guitar4"},{ name: "Guitar5"}]);
		public var Drum:ArrayCollection = new ArrayCollection([{ name: "Drum1"},{ name: "Drum2"},{ name: "Drum3"},{ name: "Drum4"},{ name: "Drum5"}]);
		public var check:ArrayCollection = new ArrayCollection([{ name: "check1"},{ name: "check2"},{ name: "check3"},{ name: "check4"},{ name: "check5"}]);
		//public var check2:ArrayCollection = new ArrayCollection([{ name: "drum1"},{ name: "drum2"},{ name: "drum3"},{ name: "drum4"},{ name: "drum5"}]);
		public var musicMenu:ArrayCollection = new ArrayCollection([{ name: "Guitar"},{ name: "Drum"},{ name: "check"}]);
		public var musicMenuItem:ArrayCollection = new ArrayCollection();
		
		//Decoration Section
		//decoration
		public var color:ArrayCollection= new ArrayCollection([{ name: "color1"},{ name: "color2"},{ name: "color3"},{ name: "color4"},{ name: "color5"}]);
		public var poster:ArrayCollection= new ArrayCollection([{ name: "poster1"},{ name: "poster2"},{ name: "poster3"},{ name: "poster4"},{ name: "poster5"}]);
		public var curtain:ArrayCollection= new ArrayCollection([{ name: "curtain1"},{ name: "curtain2"},{ name: "curtain3"},{ name: "curtain4"},{ name: "curtain5"}]);
		public var wallPaper:ArrayCollection= new ArrayCollection([{ name: "wallpaper1"},{ name: "wallpaper2"},{ name: "wallpaper3"},{ name: "wallpaper4"},{ name: "wallpaper5"}]);
		public var decorationMenu:ArrayCollection = new ArrayCollection([{ name: "color"},{ name: "curtain"},{ name: "wallpaper"},{ name: "Poster"}]);
		public var decorationMenuItem:ArrayCollection = new ArrayCollection();
		
		//Musical Instrumnet
		
		public var equipment:ArrayCollection = new ArrayCollection([{ name: "MirrorBall"},{ name: "Smoke"},{ name: "Light"}]);
		
		
		
		
		//Character selection Helper
		
		
		
		public var selectedIndex:Number;		
		public var selectedHair:Sprite;
		public var selectedJacket:Sprite;
		public var selectedLower:Sprite;
		public var selectedTShirt:Sprite;
		public var selectedShoes:Sprite;
		public var selectedBelt:Sprite;
		public var selectedLocket:Sprite;
		public var selectedWristband:Sprite;
		public var selectedCaps:Sprite;
		
		public var selectedItem:String = "";
		public var isAvatarSelected:Boolean = false;
		
		public var isGirlSelected:Boolean = false;
		public var isListenerAdded:Boolean = false;
		public var selectedAvatar:Object = new Object();
		
		
		public function GameData()
		{
			
		}
	}
}